/*
Theme Name: Kettle Kids
Theme URI: http://kettlekids.com
Description: Luxury watch showcase - parallax single page theme
Author: Jeff Nicholls
Version: 1.0
*/

/* Custom Font */
@font-face {
    font-family: 'ABC Marist';
    src: url('ABCMarist-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: 'ABC Marist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #1a1a1a;
    color: #000;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.kk-header {
    background: #fff;
    color: #000;
}

.kk-header__top {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.kk-header__topline {
    font-family: 'ABC Marist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: #333;
}

.kk-header__title-wrap {
    padding: 40px 20px 45px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.kk-header__title {
    line-height: 1;
}

.kk-header__logo {
    max-width: 320px;
    height: auto;
}

.kk-header__body-wrap {
    background: #F8F7F7;
    border-top: 1px solid #ddd;
}

.kk-header__body {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px 60px;
    text-align: center;
}

.kk-header__welcome {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 28px;
    line-height: 1.5;
}

.kk-header__description {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 40px;
}

.kk-header__description a {
    color: #000;
    text-decoration: underline;
}

.kk-header__more-text {
    display: none;
    margin-top: 15px;
}

.kk-header__more-text.open {
    display: inline;
}

.kk-header__read-more {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
}

.kk-header__founders {
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    color: #000;
}

.kk-header__signatures {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.kk-header__signatures img {
    height: 45px;
    opacity: 0.85;
}

/* ========== WATCH SECTIONS ========== */
.kk-section {
    position: sticky;
    top: 0;
    height: 950px;
    background: #1a1a1a;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    margin: 0;
    padding: 0;
    border: none;
}

/* Noise overlay - applied globally via fixed position so it's seamless across sections */
.kk-noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2000' height='950' viewBox='0 0 2000 950' fill='none'%3E%3Cg filter='url(%23f)'%3E%3Crect x='-1' width='2001' height='950' fill='%23111111'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='f' x='-1' y='0' width='2001' height='950' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='bg'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='bg' result='shape'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2 2' stitchTiles='stitch' numOctaves='3' result='noise' seed='9466'/%3E%3CfeColorMatrix in='noise' type='luminanceToAlpha' result='an'/%3E%3CfeComponentTransfer in='an' result='cn'%3E%3CfeFuncA type='discrete' tableValues='1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3CfeComposite operator='in' in2='shape' in='cn' result='nc'/%3E%3CfeFlood flood-color='rgba(255,255,255,0.08)' result='cf'/%3E%3CfeComposite operator='in' in2='nc' in='cf' result='c1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shape'/%3E%3CfeMergeNode in='c1'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
    background-size: cover;
    mix-blend-mode: soft-light;
    opacity: 0.4;
}

.kk-section.visible {
    opacity: 1;
}

/* Soft shadow at top of each section to blend into previous (skip first) */
.kk-section + .kk-section {
    box-shadow: 0 -80px 80px 0px #1a1a1a;
}

/* Background layer */
.kk-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Image wrapper */
.kk-section__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kk-section__glow-img {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(0, -50%);
    object-fit: auto;
    opacity: 1;
}

/* Flip glow to right side when watch is on right */
.kk-section--watch-right .kk-section__glow-img {
    left: unset;
    right: -30%;
}

/* Content container: sits above background */
.kk-section__container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.kk-section__container.kk-section--watch-left {
    flex-direction: row;
}

.kk-section__container.kk-section--watch-right {
    flex-direction: row-reverse;
}

/* Content wrapper: gets its own parallax transform */
.kk-section__content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    will-change: transform;
}

.kk-section__container.kk-section--watch-left .kk-section__content-wrapper {
    flex-direction: row;
}

.kk-section__container.kk-section--watch-right .kk-section__content-wrapper {
    flex-direction: row-reverse;
}

/* Watch container */
.kk-section__watch-wrap {
    flex: 0 0 55%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Watch image */
.kk-section__watch-img {
    max-height: 75vh;
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 60px rgba(0,0,0,0.6));
    will-change: transform;
}

/* Text area */
.kk-section__text {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6%;
    color: #fff;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    will-change: transform;
}

.visible .kk-section__text {
    opacity: 1;
}

.kk-section__text--right {
    text-align: left;
}

.kk-section__text--left {
    text-align: left;
}

.kk-section__brand {
    font-size: 14px;
    letter-spacing: 2px;
    color: #aaa;
    font-style: normal;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.kk-section__model {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    color: #fff;
}

/* ========== FOOTER ========== */
.kk-footer {
    position: relative;
    z-index: 100;
    background: #fff;
    color: #000;
    font-family: 'ABC Marist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.3px;
    line-height: 1.8;
}

.kk-footer__monogram {
    text-align: center;
    padding: 30px 0 15px;
}

.kk-footer__monogram img {
    height: 40px;
    opacity: 1;
}

.kk-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
}

.kk-footer__col {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.kk-footer__col svg {
    vertical-align: middle;
    margin-right: 4px;
}

.kk-footer__icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.kk-footer__icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kk-footer__heading {
    color: #000;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.kk-footer a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.kk-footer a:hover {
    opacity: 0.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .kk-section {
        height: 100vh;
        min-height: 700px;
        padding: 0;
    }

    .kk-section__container {
        flex-direction: column !important;
    }

    .kk-section__container.kk-section--watch-left,
    .kk-section__container.kk-section--watch-right {
        flex-direction: column !important;
    }

    .kk-section__content-wrapper {
        flex-direction: column !important;
        max-width: 100%;
    }

    .kk-section__watch-wrap {
        flex: none;
        width: 100%;
        height: 55vh;
        min-height: 0;
    }

    .kk-section__watch-img {
        max-height: 45vh;
        max-width: 80%;
    }

    .kk-section__text {
        flex: none;
        width: 100%;
        padding: 20px 30px;
        text-align: center !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .kk-section__glow-img {
        object-fit: cover;
    }

    .kk-section--watch-right .kk-section__glow-img {
        right: 0;
        left: 0;
    }

    .kk-header__logo {
        max-width: 220px;
    }

    .kk-header__body {
        padding: 30px 20px 40px;
    }

    .kk-footer__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        padding: 15px 20px 25px;
        text-align: center;
        font-size: 10px;
    }

    .kk-footer__col {
        flex: 0 0 45%;
        align-items: center;
    }

    .kk-footer__heading {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .kk-footer__monogram {
        padding: 20px 0 10px;
    }

    .kk-footer__monogram img {
        height: 30px;
    }
}

/* ==========================================================================
   Discover More button + panel
   ========================================================================== */

.kk-discover {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 44px;
    padding: 0;
    margin-top: 22px;
    background: transparent;
    border: 0;
    color: inherit;
    font-family: 'ABC Marist', Georgia, serif;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.kk-discover__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.kk-discover__label {
    position: relative;
    z-index: 1;
}

.kk-discover:hover .kk-discover__label {
    opacity: 0.75;
    transition: opacity 200ms ease;
}

.kk-discover:focus { outline: none; }
.kk-discover:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.kk-discover__panel {
    max-width: 560px;
    margin-top: 22px;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.kk-discover__panel[hidden] {
    display: none;
}

.kk-discover__panel.is-open {
    grid-template-rows: 1fr;
}

.kk-discover__panel-inner {
    overflow: hidden;
    min-height: 0;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 650ms cubic-bezier(0.22, 1, 0.36, 1);
    /* Hides a brief peek-through where the clip path uncovers content faster than the row height settles. */
    padding-top: 6px;
}

.kk-discover__panel.is-open .kk-discover__panel-inner {
    clip-path: inset(0 0 0 0);
}

.kk-discover__panel p {
    margin: 0;
}

@media (max-width: 768px) {
    .kk-discover {
        display: flex;
        margin-left: auto;
        margin-right: auto;
    }
    .kk-discover__panel {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    /* Disable the JS-driven text parallax on mobile so an open panel can't be pushed below the section. */
    .kk-section__text {
        transform: none !important;
    }
    /* Let the last section grow when its panel opens so the footer doesn't cover the description. */
    .kk-section:last-of-type {
        height: auto;
        min-height: 100vh;
        padding-bottom: 80px;
    }
    .kk-section:last-of-type:has(.kk-discover__panel.is-open) {
        min-height: calc(100vh + 320px);
    }
}
